 <?php
define('IN_ADMIN',True);
require_once('../include/common.php');
require_once('../include/func_inc.php');
if ( !$_USER->id ) {
	show_msg('你还没有登录，请先登录', '../login.php', 1000);
}
?> 
<link rel="stylesheet" type="text/css" href="../themes01/default/pstyle.css" />

<html>
<head>
<title>问题反馈 </title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<script Language="JavaScript"> 
var upload_limit=2,limit_type="rar,zip,7z,tar,doc,xls,ppt,dot,csv,docx,xlsx,pptx,dotx,jpg,jpeg,png,bmp,gif,log,txt,";
function InsertImage(src)
{
   AddImage2Editor('CONTENT', src);
}
function CheckForm()
{
   if(document.form1.person.value=="")
   { alert("请填写联系人！");
     return (false);
   }
   if(document.form1.tel.value=="" && document.form1.qq.value=="" && 
      document.form1.email.value=="" && document.form1.phone.value=="")
   { alert("联系方式请至少选填一项！");
     return (false);
   }
   
   return true;
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table class="TableBlock" width="550" align="center">
<?php
$blog = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."user_view  WHERE uid = '$_USER->id'");
?>
  <form enctype="multipart/form-data" action="http://m.515158.com/API/oabug.php" method="post" name="form1" onSubmit="return CheckForm();">
   <tr>
    <td nowrap class="TableContent">联系人：</td>
    <td nowrap class="TableData">
        <input type="text" name="person" value="<?=$blog["name"]?>" class="BigInput" size="20" maxlength="200">
    </td>
    <td nowrap class="TableContent">E-mail：</td>
    <td nowrap class="TableData">
        <input type="text" name="email" value="<?=$blog["email"]?>" class="BigInput" size="30" maxlength="200">
    </td>
   </tr>
   <tr>
    <td nowrap class="TableContent">手机：</td>
    <td nowrap class="TableData">
        <input type="text" name="phone" value="<?=$blog["phone"]?>" class="BigInput" size="20" maxlength="200">
    </td>
    <td nowrap class="TableContent">电话：</td>
    <td nowrap class="TableData">
        <input type="text" name="tel" value="<?=$blog["tel"]?>" class="BigInput" size="30" maxlength="200">
    </td>
   </tr>
   <tr>
    <td nowrap class="TableContent">QQ/MSN：</td>
    <td nowrap class="TableData">
        <input type="text" name="qq" value="<?=$blog["qq"]?>" class="BigInput" size="20" maxlength="200">
    </td>
    <td nowrap class="TableContent">类别：</td>
    <td nowrap class="TableData">
        <select name="TYPE" class="BigSelect">
         <option value="1">运行错误与BUG报告</option>
         <option value="2">好的想法和建议</option>
         <option value="3">新功能增加与开发</option>
		 <option value="4">OA软件模块定制</option>
		 <option value="5">其它问题反馈</option>
      </select>
    </td>
   </tr>
    
   
   <tr class="TableHeader">
    <td colspan="4">问题描述</td>
   </tr>
   <tr class="TableData">
    <td colspan="4">
	  <textarea name="content" cols="60" rows="6" id="content" style="width:550px; height:200px;"></textarea> </td>
   </tr>
   <tr class="TableControl">
    <td colspan="4" align="center">
        <input type="submit" value="提交" class="BigButton" title="提交" name="button">&nbsp;&nbsp;
    </td>
   </tr>
  </form>
</table>
 
</body>
</html>
